🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / takserver / src / commonMain / kotlin / org / meshtastic / core / takserver / TAKDefaults.kt
Displaying Raw • Download
core/takserver/src/commonMain/kotlin/org/meshtastic/core/takserver/TAKDefaults.kt copilot/create-implementation-plan (228d872f) Text, 2.21 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.takserver
Tff7b72import T7ee787org.meshtastic.proto.MemberRole
Tff7b72import T7ee787org.meshtastic.proto.Team
Tff7b72import T7ee787org.meshtastic.proto.User
Tff7b72internal Tff7b72const Tff7b72val Te6edf3DEFAULT_TAK_PORT Tff7b72= T79c0ff8T79c0ff0T79c0ff8T79c0ff7
Tff7b72internal Tff7b72const Tff7b72val Te6edf3DEFAULT_TAK_ENDPOINT Tff7b72= Ta5d6ff"Ta5d6ff0.0.0.0:4242:tcpTa5d6ff"
Tff7b72internal Tff7b72const Tff7b72val Te6edf3DEFAULT_TAK_TEAM_NAME Tff7b72= Ta5d6ff"Ta5d6ffCyanTa5d6ff"
Tff7b72internal Tff7b72const Tff7b72val Te6edf3DEFAULT_TAK_ROLE_NAME Tff7b72= Ta5d6ff"Ta5d6ffTeam MemberTa5d6ff"
Tff7b72internal Tff7b72const Tff7b72val Te6edf3DEFAULT_TAK_BATTERY Tff7b72= T79c0ff1T79c0ff0T79c0ff0
Tff7b72internal Tff7b72const Tff7b72val Te6edf3DEFAULT_TAK_STALE_MINUTES Tff7b72= T79c0ff1T79c0ff0
Tff7b72internal Tff7b72const Tff7b72val Te6edf3TAK_HEX_RADIX Tff7b72= T79c0ff1T79c0ff6
Tff7b72internal Tff7b72const Tff7b72val Te6edf3TAK_XML_READ_BUFFER_SIZE Tff7b72= T79c0ff4Te6edf3_096
Tff7b72internal Tff7b72const Tff7b72val Te6edf3TAK_KEEPALIVE_INTERVAL_MS Tff7b72= T79c0ff3T79c0ff0Te6edf3_000L
Tff7b72internal Tff7b72const Tff7b72val Te6edf3TAK_KEEPALIVE_STALE_MULTIPLIER Tff7b72= T79c0ff3
Tff7b72internal Tff7b72const Tff7b72val Te6edf3TAK_READ_IDLE_TIMEOUT_MULTIPLIER Tff7b72= T79c0ff5
Tff7b72internal Tff7b72const Tff7b72val Te6edf3TAK_ACCEPT_LOOP_DELAY_MS Tff7b72= T79c0ff1T79c0ff0T79c0ff0L
Tff7b72internal Tff7b72const Tff7b72val Te6edf3TAK_COORDINATE_SCALE Tff7b72= T79c0ff1Te6edf3e7
Tff7b72internal Tff7b72const Tff7b72val Te6edf3TAK_UNKNOWN_POINT_VALUE Tff7b72= T79c0ff9Te6edf3_999_999Tb4b4b4.T79c0ff0
Tff7b72internal Tff7b72const Tff7b72val Te6edf3TAK_DIRECT_MESSAGE_PARTS_MIN Tff7b72= T79c0ff3
Tff7b72internal Tff7b72fun Td2a8ffTeamTff7b72?.Te6edf3toTakTeamNameTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657String Tff7b72= Tff7b72when Tb4b4b4(Tff7b72thisTb4b4b4) Tb4b4b4{
Tff7b72nullTb4b4b4,
Te6edf3TeamTb4b4b4.Te6edf3Unspecifed_ColorTb4b4b4,
Tff7b72-Tff7b72> Te6edf3DEFAULT_TAK_TEAM_NAME
Tff7b72else Tff7b72-Tff7b72> Te6edf3nameTb4b4b4.Te6edf3replaceTb4b4b4(Ta5d6ff'_'Tb4b4b4, Ta5d6ff' 'Tb4b4b4)
Tb4b4b4}
Tff7b72internal Tff7b72fun Td2a8ffMemberRoleTff7b72?.Te6edf3toTakRoleNameTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657String Tff7b72= Tff7b72when Tb4b4b4(Tff7b72thisTb4b4b4) Tb4b4b4{
Tff7b72nullTb4b4b4,
Te6edf3MemberRoleTb4b4b4.Te6edf3UnspecifedTb4b4b4,
Tff7b72-Tff7b72> Te6edf3DEFAULT_TAK_ROLE_NAME
Te6edf3MemberRoleTb4b4b4.Te6edf3TeamMember Tff7b72-Tff7b72> Te6edf3DEFAULT_TAK_ROLE_NAME
Te6edf3MemberRoleTb4b4b4.Te6edf3TeamLead Tff7b72-Tff7b72> Ta5d6ff"Ta5d6ffTeam LeadTa5d6ff"
Te6edf3MemberRoleTb4b4b4.Te6edf3ForwardObserver Tff7b72-Tff7b72> Ta5d6ff"Ta5d6ffForward ObserverTa5d6ff"
Tff7b72else Tff7b72-Tff7b72> Te6edf3name
Tb4b4b4}
Tff7b72internal Tff7b72fun Te6edf3UserTb4b4b4.Td2a8fftoTakCallsignTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657String Tff7b72= Tff7b72when Tb4b4b4{
Te6edf3short_nameTb4b4b4.Te6edf3isNotBlankTb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Te6edf3short_name
Te6edf3long_nameTb4b4b4.Te6edf3isNotBlankTb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Te6edf3long_name
Tff7b72else Tff7b72-Tff7b72> Te6edf3id
Tb4b4b4}
Served by rngit 1.5.2 - Generated in 0.09s